<?php
    class Widget_Probe{
        static private $_data;

        static public function here($where){
            self::$_data[$where] = microtime(true);
        }

        static public function report(){
            echo '<div><p>[Debug]Tiri-Framework Flow Track:</p><ol>';
            
            foreach(self::$_data as $where => $when){
                if(!isset($_last)){
                    $_last = $when;

                }
                $_timeDetal = sprintf('%.5f' , $when - $_last);

                echo '<li>['.$_timeDetal .'s]'.$where.'</li>';
            }
            echo '</ol><div>';
        }
    }
?>
